import java.util.Random;

public class Ex8_4{
	public static void main(String[] args){
		Random r = new Random(1000);
		int count = 0;
		for (int i = 0; i <50; i++){
			int t = r.nextInt(100);
			System.out.printf("%-4d ", t);
			if (++count % 10 == 0)
				System.out.println();
		}
	}
}
